package cn.caplike.demo.consistence.threadpool.and.blockingqueue.core;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * 系统初始化监听器 初始队列
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2020-03-18 14:01
 */
@Slf4j
public class InitThreadLocalPoolListener implements ServletContextListener {

    /**
     * Description: 系统初始化队列
     *
     * @return void
     * @author LiKe
     * @date 2020-03-18 14:18:02
     */
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("---> 系统初始化队列-{}", RequestThreadPool.getInstance());
    }

    /**
     * Description: 监听器销毁执行的逻辑
     *
     * @return void
     * @author LiKe
     * @date 2020-03-18 14:18:18
     */
    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
